package org.example.stockdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class StockMonitor {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    private String code;
    
    private String name;
    
    // 成本价格
    private Double costPrice;

    // 监视价格
    private Double monitorPrice;

    // 5日线价格
    private Double fiveDayPrice;
    
    // 10日线价格
    private Double tenDayPrice;
    
    // 分时价格
    private Double minutePrice;

    // 当前价格
    @TableField(exist = false)
    private Double price;

    @TableField(exist = false)
    private Double changePercent;
    
    // 开盘价格
    private Double startPrice;

    // 昨日收盘价格
    private Double yesterdayPrice;
    
    // 开盘涨跌幅
    private Double startChangePercent;

    // 今日最低价
    @TableField(exist = false)
    private Double todayLowPrice;

    // 今日最高价
    @TableField(exist = false)
    private Double todayHighPrice;
    
    // 备注
    private String remark;
    
    // 创建时间
    private LocalDate createdAt;
    
    // 更新时间
    private LocalDateTime updatedAt;


}